package com.controller;

import com.page.GenericPage;
import com.po.DeviceReplenishRecordPO;
import com.result.Result;
import com.service.ReplenishProductRecordService;
import com.vo.DeviceReplenishRecordVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: chihaojie
 * @Date: 2019/7/31 10:56
 * @Version 1.0
 * @Note
 */
@Api(value = "replenishRecordApi")
@CrossOrigin
@RestController
@RequestMapping("/replenishRecord")
public class ReplenishProductRecordController {



    @Autowired
    private ReplenishProductRecordService  replenishProductRecordService;

    @ApiOperation(value = "条件查询", httpMethod = "POST", notes = "条件查询")
    @RequestMapping(value = "/queryReplenishRecordPage", method = RequestMethod.POST,produces = "application/json;charset=utf-8")
    public Result<GenericPage<DeviceReplenishRecordVO>> queryReplenishRecordPage(@RequestBody DeviceReplenishRecordPO replenishRecordPO) {
        return replenishProductRecordService.queryReplenishRecordPage(replenishRecordPO);
    }

}
